let readline=require("readline-sync");
console.log("请输入要数星星的行数");
let line = readline.question("");
let strSpace = "";
let strStar = "";
let str = "";
for(let i = 1; i <= line; i++){
    for(let j = 1 ; j <= line - i; j++){
        strSpace = strSpace + " ";
    }
    for(let k = 1; k <= 2 * i - 1; k++){
        strStar = strStar + "*";
    }
    str = strSpace + strStar;
    console.log(str);
    str = "";
    strSpace = "";
    strStar = "";
}